package com.vca.common.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 购物车详情响应对象
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CartInfoResponse对象", description="购物车详情响应对象")
public class CartInfoResponse implements Serializable {

    private static final long serialVersionUID = 3558884699193209193L;

    @ApiModelProperty(value = "购物车表ID")
    private Long id;

    @ApiModelProperty(value = "商品ID")
    private Integer productId;

    @ApiModelProperty(value = "商品类型ID")
    private Integer cid;

    @ApiModelProperty(value = "商品属性")
    private String productAttrUnique;

    @ApiModelProperty(value = "商品数量")
    private Integer quantity;

    @ApiModelProperty(value = "商品图片")
    private String imagePath;

    @ApiModelProperty(value = "商品名称")
    private String name;

    @ApiModelProperty(value = "英文商品名称")
    private String nameEn;

    @ApiModelProperty(value = "商品类别名称")
    private String categoryName;

    @ApiModelProperty(value = "英文商品类别名称")
    private String categoryNameEn;

    @ApiModelProperty(value = "商品规格id")
    private Integer attrId;

    @ApiModelProperty(value = "商品属性索引值 (attr_value|attr_value[|....])")
    private String  tag;

    @ApiModelProperty(value = "sku价格")
    private BigDecimal unitPrice;

    @ApiModelProperty(value = "商品是否有效")
    private Boolean attrStatus;

    @ApiModelProperty(value = "sku库存")
    private Integer availability;

    @ApiModelProperty(value = "标签颜色")
    private String tagColor;

//    public void setImagePath(String imagePath) {
//        this.imagePath = OssUtils.getOssFileUrl(imagePath);
//    }
}
